package com.xiaohong.user.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohong.user.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface UserMapper extends BaseMapper<User> {
    /**
     * 添加用户积分
     * @param id
     * @param point
     */
    @Update("update tb_user set points=points+#{point} where id=#{id}")
    void addPoints(@Param("id") String id, @Param("point") Integer point);
}
